home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #14 / Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO / prog_bas / savbmp.zip / FORM2.FRM < prev    next >
Text File  |  1996-01-02  |  6KB  |  197 lines

  1. VERSION 2.00
  2. Begin Form Form2 
  3.    BorderStyle     =   3  'Fixed Double
  4.    Caption         =   "Form2"
  5.    ClientHeight    =   4212
  6.    ClientLeft      =   2196
  7.    ClientTop       =   1776
  8.    ClientWidth     =   4692
  9.    Height          =   4536
  10.    Left            =   2148
  11.    LinkTopic       =   "Form2"
  12.    ScaleHeight     =   4212
  13.    ScaleWidth      =   4692
  14.    Top             =   1500
  15.    Width           =   4788
  16.    Begin CommandButton Command1 
  17.       Caption         =   "OK"
  18.       Height          =   495
  19.       Left            =   1320
  20.       TabIndex        =   8
  21.       Top             =   3360
  22.       Width           =   1455
  23.    End
  24.    Begin Frame Frame2 
  25.       Caption         =   "Options"
  26.       Height          =   3855
  27.       Left            =   240
  28.       TabIndex        =   0
  29.       Top             =   120
  30.       Width           =   4215
  31.       Begin OptionButton Option2 
  32.          Caption         =   "16 Million Color bitmap"
  33.          Height          =   315
  34.          Index           =   3
  35.          Left            =   360
  36.          TabIndex        =   13
  37.          Top             =   1260
  38.          Width           =   2415
  39.       End
  40.       Begin OptionButton Option2 
  41.          Caption         =   "256-Color bitmap"
  42.          Height          =   255
  43.          Index           =   2
  44.          Left            =   360
  45.          TabIndex        =   10
  46.          Top             =   960
  47.          Width           =   1935
  48.       End
  49.       Begin OptionButton Option2 
  50.          Caption         =   "Monochrome bitmap"
  51.          Height          =   255
  52.          Index           =   0
  53.          Left            =   360
  54.          TabIndex        =   2
  55.          Top             =   360
  56.          Value           =   -1  'True
  57.          Width           =   2175
  58.       End
  59.       Begin OptionButton Option2 
  60.          Caption         =   "16-Color bitmap"
  61.          Height          =   255
  62.          Index           =   1
  63.          Left            =   360
  64.          TabIndex        =   1
  65.          Top             =   660
  66.          Width           =   1935
  67.       End
  68.       Begin Frame Frame1 
  69.          Caption         =   "Monochrome Options"
  70.          Height          =   1275
  71.          Left            =   120
  72.          TabIndex        =   3
  73.          Top             =   1740
  74.          Width           =   3975
  75.          Begin CheckBox Check1 
  76.             Caption         =   "Negative Image"
  77.             Height          =   255
  78.             Left            =   240
  79.             TabIndex        =   9
  80.             Top             =   900
  81.             Width           =   1935
  82.          End
  83.          Begin VScrollBar VScroll1 
  84.             Height          =   255
  85.             Left            =   3480
  86.             Max             =   0
  87.             Min             =   255
  88.             TabIndex        =   6
  89.             Top             =   600
  90.             Value           =   128
  91.             Width           =   255
  92.          End
  93.          Begin OptionButton Option1 
  94.             Caption         =   "Nearest Color - Threshold:"
  95.             Height          =   255
  96.             Index           =   1
  97.             Left            =   240
  98.             TabIndex        =   5
  99.             Top             =   600
  100.             Width           =   2535
  101.          End
  102.          Begin OptionButton Option1 
  103.             Caption         =   "All Colors to Black"
  104.             Height          =   315
  105.             Index           =   0
  106.             Left            =   240
  107.             TabIndex        =   4
  108.             Top             =   300
  109.             Value           =   -1  'True
  110.             Width           =   1935
  111.          End
  112.          Begin Label Label1 
  113.             BorderStyle     =   1  'Fixed Single
  114.             Caption         =   " 128"
  115.             Height          =   255
  116.             Left            =   2880
  117.             TabIndex        =   7
  118.             Top             =   600
  119.             Width           =   615
  120.          End
  121.       End
  122.       Begin Frame Frame3 
  123.          Caption         =   "256-Color Options"
  124.          Height          =   1275
  125.          Left            =   120
  126.          TabIndex        =   11
  127.          Top             =   1740
  128.          Visible         =   0   'False
  129.          Width           =   3975
  130.          Begin TextBox Text1 
  131.             Height          =   285
  132.             Left            =   240
  133.             TabIndex        =   15
  134.             Text            =   "c:\vb\rainbow.dib"
  135.             Top             =   900
  136.             Width           =   3375
  137.          End
  138.          Begin CheckBox Check2 
  139.             Caption         =   "Convert to GreyScale"
  140.             Height          =   255
  141.             Left            =   240
  142.             TabIndex        =   12
  143.             Top             =   300
  144.             Width           =   2415
  145.          End
  146.          Begin Label Label2 
  147.             Caption         =   "Use Palette from:"
  148.             Height          =   195
  149.             Left            =   240
  150.             TabIndex        =   14
  151.             Top             =   660
  152.             Width           =   2415
  153.          End
  154.       End
  155.    End
  156. End
  157. Option Explicit
  158. '******************************************
  159. '
  160. '  This form lets you choose between
  161. ' the various options.  It is always loaded.
  162. '  The choices are read out of the controls
  163. ' on this form in the module subroutines.
  164. '
  165. '*******************************************
  166.  
  167. Sub Check2_Click ()
  168.   If Check2 Then
  169.     Text1.Enabled = False
  170.   Else
  171.     Text1.Enabled = True
  172.   End If
  173. End Sub
  174.  
  175. Sub Command1_Click ()
  176.   Me.Hide
  177.   Frame2.Visible = True
  178. End Sub
  179.  
  180. Sub Option2_Click (Index As Integer)
  181.   If Index = 2 Then
  182.     Frame1.Visible = False
  183.     Frame3.Visible = True
  184.   ElseIf Index = 0 Then
  185.     Frame1.Visible = True
  186.     Frame3.Visible = False
  187.   Else
  188.     Frame1.Visible = False
  189.     Frame3.Visible = False
  190.   End If
  191. End Sub
  192.  
  193. Sub VScroll1_Change ()
  194.   Label1 = Str$(VScroll1)
  195. End Sub
  196.  
  197.